This script numbers the lines of the frontmost document. Before adding the numbers it makes sure that all lines have cr endings.